function loadMdMenu(idCanvas) {

	var MM_Font1 = 'bold 14px  "Meiryo", "MS PGothic", "ヒラギノ角ゴ Pro W3", "Osaka", "Verdana", "arial", "sans-serif"';
	var MM_Font2 = 'bold 36px  "Meiryo", "MS PGothic", "ヒラギノ角ゴ Pro W3", "Osaka", "Verdana", "arial", "sans-serif"';

	var TxtFont1 = 'bold 18px  "Meiryo", "MS PGothic", "ヒラギノ角ゴ Pro W3", "Osaka", "Verdana", "arial", "sans-serif"';
	var TxtFont2 = 'bold 24px  "Meiryo", "MS PGothic", "ヒラギノ角ゴ Pro W3", "Osaka", "Verdana", "arial", "sans-serif"';
	var FadeSw = 0;
	var idx = 0;
	var TxtY = 0;
	var TxtRow = '';
	var TxtEND = 0;
	var M_SchoolTxt = '';

	jc.canvas(idCanvas).clear();

	// 背景色の変更
	document.getElementById('canvas_area').style.backgroundColor = '#222222';

	// タイトルの変更
	document.getElementById("headerText").innerHTML = "<b>どこいく？</b>";

	jc.start(idCanvas, true);

	jc.text("行きたい場所をえらんで下さい", 145, 20, 'rgb(255,255,255)').id('MM_TTxt1').font(MM_Font1).align('center');
	jc.text("", 145, 40, 'rgb(255,255,255)').id('MM_TTxt2').font(MM_Font1).align('center');

	jc.rect(5, 50, 135, 170, 'rgba(200,255,255,1)', 1).mouseover(function() {
		jc('#MM_STxtR1').color('rgb(255,0,0)');
		jc('#MM_STxt1').color('rgb(255,0,0)');
	}).mouseout(function() {
		jc('#MM_STxtR1').color('rgb(0,0,0)');
		jc('#MM_STxt1').color('rgb(0,0,0)');
	}).click(function() {
		if (firstLogin == '4'){
			firstLogin = '0';
		}
		if (userLevel > 6) {
			jc.canvas(idCanvas).clear();
			loadMdSmModeSel(idCanvas);
		} else {
			var MM_1d = new Date();
			$.getJSON('../main/mdSummonStart' + '?_=' + MM_1d.getMilliseconds(), {
				userId : userId,
				firstLogin : firstLogin,
				idCanvas : idCanvas
			}, callbackSummon, "json");
		}
	}).layer('MM_L_S1');

	jc.text("しょうかんしつ", 70, 110, 'rgb(0,0,0)').id('MM_STxtR1').font(MM_Font1).align('center').opacity(1).layer('MM_L_S1');
	jc.text("召喚室", 70, 150, 'rgb(0,0,0)').id('MM_STxt1').font(MM_Font2).align('center').opacity(1).layer('MM_L_S1');

	jc.layer('MM_L_S1').objects().mouseover(function() {
		jc('#MM_STxtR1').color('rgb(255,0,0)');
		jc('#MM_STxt1').color('rgb(255,0,0)');
	}).mouseout(function() {
		jc('#MM_STxtR1').color('rgb(0,0,0)');
		jc('#MM_STxt1').color('rgb(0,0,0)');
	});

	if (firstLogin != '1') {
		jc.rect(150, 50, 135, 170, 'rgba(255,200,255,1)', 1).mouseover(function() {
			jc('#MM_STxtR2').color('rgb(255,0,0)');
			jc('#MM_STxt2').color('rgb(255,0,0)');
		}).mouseout(function() {
			jc('#MM_STxtR2').color('rgb(0,0,0)');
			jc('#MM_STxt2').color('rgb(0,0,0)');
		}).click(function() {
			if (firstLogin == '4'){
				firstLogin = '0';
			}
			var MM_2d = new Date();
			$.getJSON('../main/mdEditStart' + '?_=' + MM_2d.getMilliseconds(), {
				userId : userId,
				firstLogin : firstLogin,
				idCanvas : idCanvas
			}, callbackEdit, "json");
		}).layer('MM_L_S2');

		jc.text("へんせいしつ", 220, 110, 'rgb(0,0,0)').id('MM_STxtR2').font(MM_Font1).align('center').opacity(1).layer('MM_L_S2');
		jc.text("編成室", 220, 150, 'rgb(0,0,0)').id('MM_STxt2').font(MM_Font2).align('center').opacity(1).layer('MM_L_S2');

		jc.layer('MM_L_S2').objects().mouseover(function() {
			jc('#MM_STxtR2').color('rgb(255,0,0)');
			jc('#MM_STxt2').color('rgb(255,0,0)');
		}).mouseout(function() {
			jc('#MM_STxtR2').color('rgb(0,0,0)');
			jc('#MM_STxt2').color('rgb(0,0,0)');
		});

	}

	if (firstLogin != '1' && firstLogin != '2') {
		jc.rect(5, 230, 135, 170, 'rgba(255,255,200,1)', 1).mouseover(function() {
			jc('#MM_STxtR3').color('rgb(255,0,0)');
			jc('#MM_STxt3').color('rgb(255,0,0)');
		}).mouseout(function() {
			jc('#MM_STxtR3').color('rgb(0,0,0)');
			jc('#MM_STxt3').color('rgb(0,0,0)');
		}).click(function() {
			if (useTxt01 == ''
				|| useTxt02 == ''
				|| useTxt03 == ''){
				alert('漢字が３つ選択されていません\n編成室で３つの漢字を選んで下さい');
			} else {
				if (firstLogin == '4'){
					firstLogin = '0';
				}
				if (firstLogin == '3'){
					var MM_3d = new Date();
					$.getJSON('../main/mdFieldStart' + '?_=' + MM_3d.getMilliseconds(), {
						userId : userId,
						firstLogin : firstLogin,
						idCanvas : idCanvas
					}, callbackField, "json");
				} else {
					jc.canvas(idCanvas).clear();
					loadMdTournament(idCanvas);
					// タイトルの変更
					document.getElementById("headerText").innerHTML = "<b>対戦室</b>";
				}
			}
		}).layer('MM_L_S3');

		jc.text("たいせんしつ", 70, 290, 'rgb(0,0,0)').id('MM_STxtR3').font(MM_Font1).align('center').opacity(1).layer('MM_L_S3');
		jc.text("対戦室", 70, 330, 'rgb(0,0,0)').id('MM_STxt3').font(MM_Font2).align('center').opacity(1).layer('MM_L_S3');

		jc.layer('MM_L_S3').objects().mouseover(function() {
			jc('#MM_STxtR3').color('rgb(255,0,0)');
			jc('#MM_STxt3').color('rgb(255,0,0)');
		}).mouseout(function() {
			jc('#MM_STxtR3').color('rgb(0,0,0)');
			jc('#MM_STxt3').color('rgb(0,0,0)');
		});
	}

	if (firstLogin != '1' && firstLogin != '2' && firstLogin != '3' && firstLogin != '4') {
		jc.rect(150, 230, 135, 170, 'rgba(200,255,200,1)', 1).mouseover(function() {
			jc('#MM_STxtR4').color('rgb(255,0,0)');
			jc('#MM_STxt4').color('rgb(255,0,0)');
		}).mouseout(function() {
			jc('#MM_STxtR4').color('rgb(0,0,0)');
			jc('#MM_STxt4').color('rgb(0,0,0)');
		}).click(function() {
			var MM_4d = new Date();
			$.getJSON('../main/mdRecordStart' + '?_=' + MM_4d.getMilliseconds(), {
				userId : userId,
				idCanvas : idCanvas
			}, callbackRecord, "json");
		}).layer('MM_L_S4');

		jc.text("きろくしつ", 220, 290, 'rgb(0,0,0)').id('MM_STxtR4').font(MM_Font1).align('center').opacity(1).layer('MM_L_S4');
		jc.text("記録室", 220, 330, 'rgb(0,0,0)').id('MM_STxt4').font(MM_Font2).align('center').opacity(1).layer('MM_L_S4');

		jc.layer('MM_L_S4').objects().mouseover(function() {
			jc('#MM_STxtR4').color('rgb(255,0,0)');
			jc('#MM_STxt4').color('rgb(255,0,0)');
		}).mouseout(function() {
			jc('#MM_STxtR4').color('rgb(0,0,0)');
			jc('#MM_STxt4').color('rgb(0,0,0)');
		});
	}

	if (firstLogin == '1' || firstLogin == '2' || firstLogin == '3' || firstLogin == '4') {
		// 教師キャラの描画
		var imgTchr = new Image();
		imgTchr.src = '/static/image/mdkbr/g_000R.png';
		imgTchr.onload = function() {
			jc.image(imgTchr, 160, 200, 145, 280, 50, 0, 200, 400).id("TchrCG").layer('MM_L_Tchr');
		}

		if (firstLogin == '1') {
			jc.line([ [ 175, 300 ], [ 190, 310 ], [ 175, 320 ] ], 'rgba(0,255,0,1)', 1).layer('MM_L_Tchr');
			jc.rect(10, 230, 165, 170, 'rgba(0,255,0,1)', 1).layer('MM_L_Tchr');
			if(playerSchool == '001'){
				M_SchoolTxt = 'いなほ学園';
			} else if(playerSchool == '002'){
				M_SchoolTxt = 'かえで学院';
			} else if(playerSchool == '003'){
				M_SchoolTxt = 'あさぎ付属';
			} else if(playerSchool == '004'){
				M_SchoolTxt = 'もえぎ高校';
			}

			jc.text(M_SchoolTxt + "にようこそ！", 15, 250, 'rgb(0,0,0)').font(MM_Font1).layer('MM_L_Tchr');
			jc.text("新入生教育担当の", 15, 270, 'rgb(0,0,0)').font(MM_Font1).layer('MM_L_Tchr');
			jc.text("中村です。よろしく♪", 15, 290, 'rgb(0,0,0)').font(MM_Font1).layer('MM_L_Tchr');
			jc.text("", 15, 310, 'rgb(0,0,0)').font(MM_Font1).layer('MM_L_Tchr');
			jc.text("全国漢字戦略大会に", 15, 330, 'rgb(0,0,0)').font(MM_Font1).layer('MM_L_Tchr');
			jc.text("出場するためには", 15, 350, 'rgb(0,0,0)').font(MM_Font1).layer('MM_L_Tchr');
			jc.text("漢字が必要です。まずは", 15, 370, 'rgb(0,0,0)').font(MM_Font1).layer('MM_L_Tchr');
			jc.text("召喚室に行きましょう", 15, 390, 'rgb(0,0,0)').font(MM_Font1).layer('MM_L_Tchr');
		} else if (firstLogin == '2') {
			jc.line([ [ 175, 300 ], [ 190, 310 ], [ 175, 320 ] ], 'rgba(0,255,0,1)', 1).layer('MM_L_Tchr');
			jc.rect(10, 230, 165, 170, 'rgba(0,255,0,1)', 1).layer('MM_L_Tchr');
			jc.text("漢字は召喚できた？", 15, 250, 'rgb(0,0,0)').font(MM_Font1).layer('MM_L_Tchr');
			jc.text("漢字は最低３つ持って", 15, 270, 'rgb(0,0,0)').font(MM_Font1).layer('MM_L_Tchr');
			jc.text("ないと戦いにならないよ", 15, 290, 'rgb(0,0,0)').font(MM_Font1).layer('MM_L_Tchr');
			jc.text("足りないなら追加して♪", 15, 310, 'rgb(0,0,0)').font(MM_Font1).layer('MM_L_Tchr');
			jc.text("", 15, 330, 'rgb(0,0,0)').font(MM_Font1).layer('MM_L_Tchr');
			jc.text("召喚が済んだら次は", 15, 350, 'rgb(0,0,0)').font(MM_Font1).layer('MM_L_Tchr');
			jc.text("編成室に行って使う", 15, 370, 'rgb(0,0,0)').font(MM_Font1).layer('MM_L_Tchr');
			jc.text("漢字を決めましょう！", 15, 390, 'rgb(0,0,0)').font(MM_Font1).layer('MM_L_Tchr');
		} else if (firstLogin == '3') {
			jc.line([ [ 175, 240 ], [ 190, 270 ], [ 175, 260 ] ], 'rgba(0,255,0,1)', 1).layer('MM_L_Tchr');
			jc.rect(10, 160, 165, 110, 'rgba(0,255,0,1)', 1).layer('MM_L_Tchr');
			jc.text("緑の枠に３つ漢字を", 15, 180, 'rgb(0,0,0)').font(MM_Font1).layer('MM_L_Tchr');
			jc.text("選択できたかな？", 15, 200, 'rgb(0,0,0)').font(MM_Font1).layer('MM_L_Tchr');
			jc.text("じゃあ、教官と対戦して", 15, 220, 'rgb(0,0,0)').font(MM_Font1).layer('MM_L_Tchr');
			jc.text("みようか！", 15, 240, 'rgb(0,0,0)').font(MM_Font1).layer('MM_L_Tchr');
			jc.text("対戦室に行ってみよう！", 15, 260, 'rgb(0,0,0)').font(MM_Font1).layer('MM_L_Tchr');
			jc.text("", 15, 350, 'rgb(0,0,0)').font(MM_Font1).layer('MM_L_Tchr');
			jc.text("", 15, 370, 'rgb(0,0,0)').font(MM_Font1).layer('MM_L_Tchr');
			jc.text("", 15, 390, 'rgb(0,0,0)').font(MM_Font1).layer('MM_L_Tchr');
		} else if (firstLogin == '4') {
			jc.line([ [ 175, 240 ], [ 190, 270 ], [ 175, 260 ] ], 'rgba(0,255,0,1)', 1).layer('MM_L_Tchr');
			jc.rect(10, 160, 165, 110, 'rgba(0,255,0,1)', 1).layer('MM_L_Tchr');
			jc.text("教官は強かった？", 15, 180, 'rgb(0,0,0)').font(MM_Font1).layer('MM_L_Tchr');
			jc.text("漢字によって強さと", 15, 200, 'rgb(0,0,0)').font(MM_Font1).layer('MM_L_Tchr');
			jc.text("得意な属性が変わるから", 15, 220, 'rgb(0,0,0)').font(MM_Font1).layer('MM_L_Tchr');
			jc.text("色んな組み合わせを", 15, 240, 'rgb(0,0,0)').font(MM_Font1).layer('MM_L_Tchr');
			jc.text("試してみてね♪", 15, 260, 'rgb(0,0,0)').font(MM_Font1).layer('MM_L_Tchr');

			jc.line([ [ 175, 360 ], [ 190, 350 ], [ 175, 380 ] ], 'rgba(0,255,0,1)', 1).layer('MM_L_Tchr');
			jc.rect(10, 340, 165, 50, 'rgba(0,255,0,1)', 1).layer('MM_L_Tchr');
			jc.text("対戦室で乱戦を選んで", 15, 360, 'rgb(0,0,0)').font(MM_Font1).layer('MM_L_Tchr');
			jc.text("経験値をつもう！", 15, 380, 'rgb(0,0,0)').font(MM_Font1).layer('MM_L_Tchr');
		}
	}

	if (firstLogin != '1' && firstLogin != '2' && firstLogin != '3' && firstLogin != '4') {

		jc.rect(5, 405, 195, 30, 'rgba(256,153,0,1)', 1).layer('MM_L_RT').mouseover(function() {
			jc('#MM_RTTxt').color('#ffff00');
		}).mouseout(function() {
			jc('#MM_RTTxt').color('rgb(0,0,0)');
		}).click(function() {
			if(window.confirm("終了してよろしいですか？")){
				document.location = '/mdkbr/';
		    }
		});
		jc.text("ゲームを終わる", 105, 425, 'rgb(0,0,0)').id('MM_RTTxt').font(TxtFont1).align('center').opacity(1).mouseover(function() {
			jc('#MM_RTTxt').color('#ffff00');
		}).mouseout(function() {
			jc('#MM_RTTxt').color('rgb(0,0,0)');
		}).layer('MM_L_RT');


		jc.rect(205, 405, 80, 30, 'rgba(256,153,0,1)', 1).layer('MM_L_HLP').mouseover(function() {
			jc('#MM_HLPTxt').color('#ffff00');
		}).mouseout(function() {
			jc('#MM_HLPTxt').color('rgb(0,0,0)');
		}).click(function() {
			jc.canvas(idCanvas).clear();
			loadMdHelp(idCanvas);
			// タイトルの変更
			document.getElementById("headerText").innerHTML = "<b>ヘルプ</b>";
		});
		jc.text("ヘルプ", 245, 425, 'rgb(0,0,0)').id('MM_HLPTxt').font(TxtFont1).align('center').opacity(1).mouseover(function() {
			jc('#MM_HLPTxt').color('#ffff00');
		}).mouseout(function() {
			jc('#MM_HLPTxt').color('rgb(0,0,0)');
		}).layer('MM_L_HLP');
	}

	jc.start(idCanvas, true);

}
function callbackSummon(result) {

	if (result.idCanvas != '') {
		userId = result.userId;
		userLevel = parseInt(result.userLevel);
		userExp = parseInt(result.userExp);
		hdTxt01 = result.holderKanji01;
		hdTxt02 = result.holderKanji02;
		hdTxt03 = result.holderKanji03;
		hdTxt04 = result.holderKanji04;
		hdTxt05 = result.holderKanji05;
		hdTxt06 = result.holderKanji06;
		hdTxt07 = result.holderKanji07;
		hdTxt08 = result.holderKanji08;
		useTxt01 = result.usingKanji01;
		useTxt02 = result.usingKanji02;
		useTxt03 = result.usingKanji03;

		if (result.kanji01Bp != "") {
			kanji01Bp = parseInt(result.kanji01Bp);
		} else {
			kanji01Bp = 0;
		}
		if (result.kanji02Bp != "") {
			kanji02Bp = parseInt(result.kanji02Bp);
		} else {
			kanji02Bp = 0;
		}
		if (result.kanji03Bp != "") {
			kanji03Bp = parseInt(result.kanji03Bp);
		} else {
			kanji03Bp = 0;
		}
		if (result.kanji04Bp != "") {
			kanji04Bp = parseInt(result.kanji04Bp);
		} else {
			kanji04Bp = 0;
		}
		if (result.kanji05Bp != "") {
			kanji05Bp = parseInt(result.kanji05Bp);
		} else {
			kanji05Bp = 0;
		}
		if (result.kanji06Bp != "") {
			kanji06Bp = parseInt(result.kanji06Bp);
		} else {
			kanji06Bp = 0;
		}
		if (result.kanji07Bp != "") {
			kanji07Bp = parseInt(result.kanji07Bp);
		} else {
			kanji07Bp = 0;
		}
		if (result.kanji08Bp != "") {
			kanji08Bp = parseInt(result.kanji08Bp);
		} else {
			kanji08Bp = 0;
		}

		if (result.kanji01Ap != "") {
			kanji01Ap = parseInt(result.kanji01Ap);
		} else {
			kanji01Ap = 0;
		}
		if (result.kanji02Ap != "") {
			kanji02Ap = parseInt(result.kanji02Ap);
		} else {
			kanji02Ap = 0;
		}
		if (result.kanji03Ap != "") {
			kanji03Ap = parseInt(result.kanji03Ap);
		} else {
			kanji03Ap = 0;
		}
		if (result.kanji04Ap != "") {
			kanji04Ap = parseInt(result.kanji04Ap);
		} else {
			kanji04Ap = 0;
		}
		if (result.kanji05Ap != "") {
			kanji05Ap = parseInt(result.kanji05Ap);
		} else {
			kanji05Ap = 0;
		}
		if (result.kanji06Ap != "") {
			kanji06Ap = parseInt(result.kanji06Ap);
		} else {
			kanji06Ap = 0;
		}
		if (result.kanji07Ap != "") {
			kanji07Ap = parseInt(result.kanji07Ap);
		} else {
			kanji07Ap = 0;
		}
		if (result.kanji08Ap != "") {
			kanji08Ap = parseInt(result.kanji08Ap);
		} else {
			kanji08Ap = 0;
		}

		kanji01Type = result.kanji01Type;
		kanji02Type = result.kanji02Type;
		kanji03Type = result.kanji03Type;
		kanji04Type = result.kanji04Type;
		kanji05Type = result.kanji05Type;
		kanji06Type = result.kanji06Type;
		kanji07Type = result.kanji07Type;
		kanji08Type = result.kanji08Type;

		kanji01TypeTxt = result.kanji01TypeTxt;
		kanji02TypeTxt = result.kanji02TypeTxt;
		kanji03TypeTxt = result.kanji03TypeTxt;
		kanji04TypeTxt = result.kanji04TypeTxt;
		kanji05TypeTxt = result.kanji05TypeTxt;
		kanji06TypeTxt = result.kanji06TypeTxt;
		kanji07TypeTxt = result.kanji07TypeTxt;
		kanji08TypeTxt = result.kanji08TypeTxt;

		firstLogin = result.firstLogin;

		jc.canvas(result.idCanvas).clear();
		if (summonMode == '1') {
			loadMdSummon(result.idCanvas);
		} else {
			loadMdSummonSel(result.idCanvas);
		}
		// タイトルの変更
		document.getElementById("headerText").innerHTML = "<b>召喚室</b>";
	}
}

function callbackEdit(result) {

	if (result.idCanvas != '') {
		userId = result.userId;
		hdTxt01 = result.holderKanji01;
		hdTxt02 = result.holderKanji02;
		hdTxt03 = result.holderKanji03;
		hdTxt04 = result.holderKanji04;
		hdTxt05 = result.holderKanji05;
		hdTxt06 = result.holderKanji06;
		hdTxt07 = result.holderKanji07;
		hdTxt08 = result.holderKanji08;
		useTxt01 = result.usingKanji01;
		useTxt02 = result.usingKanji02;
		useTxt03 = result.usingKanji03;
		useType01 = result.usingKanjiType01;
		useType02 = result.usingKanjiType02;
		useType03 = result.usingKanjiType03;
		useTypeTxt01 = result.usingKanjiTypeText01;
		useTypeTxt02 = result.usingKanjiTypeText02;
		useTypeTxt03 = result.usingKanjiTypeText03;
		userBP = parseInt(result.userBP);
		userAP = parseInt(result.userAP);

		if (result.kanji01Bp != "") {
			kanji01Bp = parseInt(result.kanji01Bp);
		} else {
			kanji01Bp = 0;
		}
		if (result.kanji02Bp != "") {
			kanji02Bp = parseInt(result.kanji02Bp);
		} else {
			kanji02Bp = 0;
		}
		if (result.kanji03Bp != "") {
			kanji03Bp = parseInt(result.kanji03Bp);
		} else {
			kanji03Bp = 0;
		}
		if (result.kanji04Bp != "") {
			kanji04Bp = parseInt(result.kanji04Bp);
		} else {
			kanji04Bp = 0;
		}
		if (result.kanji05Bp != "") {
			kanji05Bp = parseInt(result.kanji05Bp);
		} else {
			kanji05Bp = 0;
		}
		if (result.kanji06Bp != "") {
			kanji06Bp = parseInt(result.kanji06Bp);
		} else {
			kanji06Bp = 0;
		}
		if (result.kanji07Bp != "") {
			kanji07Bp = parseInt(result.kanji07Bp);
		} else {
			kanji07Bp = 0;
		}
		if (result.kanji08Bp != "") {
			kanji08Bp = parseInt(result.kanji08Bp);
		} else {
			kanji08Bp = 0;
		}

		if (result.kanji01Ap != "") {
			kanji01Ap = parseInt(result.kanji01Ap);
		} else {
			kanji01Ap = 0;
		}
		if (result.kanji02Ap != "") {
			kanji02Ap = parseInt(result.kanji02Ap);
		} else {
			kanji02Ap = 0;
		}
		if (result.kanji03Ap != "") {
			kanji03Ap = parseInt(result.kanji03Ap);
		} else {
			kanji03Ap = 0;
		}
		if (result.kanji04Ap != "") {
			kanji04Ap = parseInt(result.kanji04Ap);
		} else {
			kanji04Ap = 0;
		}
		if (result.kanji05Ap != "") {
			kanji05Ap = parseInt(result.kanji05Ap);
		} else {
			kanji05Ap = 0;
		}
		if (result.kanji06Ap != "") {
			kanji06Ap = parseInt(result.kanji06Ap);
		} else {
			kanji06Ap = 0;
		}
		if (result.kanji07Ap != "") {
			kanji07Ap = parseInt(result.kanji07Ap);
		} else {
			kanji07Ap = 0;
		}
		if (result.kanji08Ap != "") {
			kanji08Ap = parseInt(result.kanji08Ap);
		} else {
			kanji08Ap = 0;
		}

		kanji01Type = result.kanji01Type;
		kanji02Type = result.kanji02Type;
		kanji03Type = result.kanji03Type;
		kanji04Type = result.kanji04Type;
		kanji05Type = result.kanji05Type;
		kanji06Type = result.kanji06Type;
		kanji07Type = result.kanji07Type;
		kanji08Type = result.kanji08Type;

		kanji01TypeTxt = result.kanji01TypeTxt;
		kanji02TypeTxt = result.kanji02TypeTxt;
		kanji03TypeTxt = result.kanji03TypeTxt;
		kanji04TypeTxt = result.kanji04TypeTxt;
		kanji05TypeTxt = result.kanji05TypeTxt;
		kanji06TypeTxt = result.kanji06TypeTxt;
		kanji07TypeTxt = result.kanji07TypeTxt;
		kanji08TypeTxt = result.kanji08TypeTxt;

		firstLogin = result.firstLogin;

		jc.canvas(result.idCanvas).clear();
		loadMdEdit(result.idCanvas);
		// タイトルの変更
		document.getElementById("headerText").innerHTML = "<b>編成室</b>";
	}
}

function callbackField(result) {

	if (result.idCanvas != '') {
		userId = result.userId;
		playerName = result.playerName;
		playerSchool = result.playerSchool;
		playerSex = result.playerSex;
		playerType = result.playerType;
		playerBarPoint = result.playerBarPoint;
		playerBarPointBefore = result.playerBarPointBefore;
		playerAttackPoint = result.playerAttackPoint;
		playerKanji01 = result.playerKanji01;
		playerKanji02 = result.playerKanji02;
		playerKanji03 = result.playerKanji03;
		PF_S1 = parseInt(result.playerTypeSp1);
		PF_S2 = parseInt(result.playerTypeSp2);
		PF_S3 = parseInt(result.playerTypeSp3);
		PF_S4 = parseInt(result.playerTypeSp4);
		PF_S5 = parseInt(result.playerTypeSp5);
		playerCG = result.playerCG;
		userLevel = parseInt(result.userLevel);
		userExp = parseInt(result.userExp);
		userNextLvExp = parseInt(result.userNextLvExp);

		eneId = result.eneId;
		enemyName = result.enemyName;
		enemyBarPoint = result.enemyBarPoint;
		enemyBarPointBefore = result.enemyBarPointBefore;
		enemyAttackPoint = result.enemyAttackPoint;
		enemyKanji01 = result.enemyKanji01;
		enemyKanji02 = result.enemyKanji02;
		enemyKanji03 = result.enemyKanji03;
		EF_S1 = parseInt(result.enemyTypeSp1);
		EF_S2 = parseInt(result.enemyTypeSp2);
		EF_S3 = parseInt(result.enemyTypeSp3);
		EF_S4 = parseInt(result.enemyTypeSp4);
		EF_S5 = parseInt(result.enemyTypeSp5);
		enemyCG = result.enemyCG;
		enemyType = result.enemyType;
		fieldType = result.fieldType;

		jc.canvas(result.idCanvas).clear();
		loadMdField(result.idCanvas);
		// タイトルの変更
		document.getElementById("headerText").innerHTML = "<b>対戦室</b>";
	}
}

function callbackRecord(result) {

	if (result.idCanvas != '') {
		userId = result.userId;
		playerName = result.playerName;
		playerSchool = result.playerSchool;
		playerSex = result.playerSex;
		playerType = result.playerType;
		userLevel = parseInt(result.userLevel);
		userExp = parseInt(result.userExp);
		playerCG = result.playerCG;
		battleCount = result.battleCount;
		winCount = result.winCount;
		loseCount = result.loseCount;
		playerStr = result.playerStr;

		jc.canvas(result.idCanvas).clear();
		loadMdRecord(result.idCanvas);
		// タイトルの変更
		document.getElementById("headerText").innerHTML = "<b>記録室</b>";
	}
}
